/*
 *   Copyright©2023 JoyCastle.
 *   All Rights Reserved.
 *   
 *   FileName:     UICommonText.cs
 *   Author:       Administrator
 *   CreateTime:   2024/05/07 18:21:47
 *   UnityVersion: 2020.3.48f1c1
 *   Version:      1.1.9
 *   Description:
 *   
 */

using GTA;
using UnityEngine;
using UnityEngine.UI;

namespace offline2048
{ 
    public class UICommonText : MonoBehaviour
    {
        private Text m_Text;
        public string m_LanguageId = "";
        // Start is called before the first frame update
        void Start()
        {
            OnChangeLanguage();
        }

        private void OnDestroy()
        {

        }

        private void OnChangeLanguage()
        {
            this.GetComponent<Text>().text = Utils.GetTextByID(m_LanguageId);
        }
    }
}

